package com.alison.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.alison.entity.SUser;
import com.alison.mapper.UserMapper;

@RestController
@RequestMapping("/usercontrooler")
public class UserControoler {
    @Autowired
    private UserMapper userMapper;

    /**
     * 测试负载均衡策略
     */
    @GetMapping("selectAll")
    public void selectAll() {
        List<SUser> users = userMapper.selectList(null);
        users.forEach(System.out::println);
    }

}
